/**
 * Created by 55456 on 2016/4/17.
 */
var express= require("express");
var root = __dirname;
var path =require("path");

var port = 3000;

var app = express();
app.use(express.static(path.join(__dirname,"public")));



var ECT = require('ect');
var ectRenderer = ECT({ watch: true, root: __dirname + '/views', ext : '.html' });

app.set('view engine', 'ect');
app.engine('html', ectRenderer.render);

var router = require("./routers/index");
app.use(router);

app.listen(port);
module.exports = app;